#!/bin/bash
mkdir -p ~/work
cd ~/work || { echo "无法进入work目录"; exit 1; }
#批量创建
touch test{1..10}.log

mkdir -p odd even
#移动奇数
mv test{1,3,5,7,9}.log odd/ 2>/dev/null
#移动偶数
mv test{2,4,6,8,10}.log even/ 2>/dev/null

#输出目录结构
ls -R > structure.txt

echo "完成"
